package util.err
{
	import flash.filesystem.File;

	public class FileNotFileErr extends Error
	{
		/**
		 * 
		 * @param file 路径字符串或File对象
		 * 
		 */		
		public function FileNotFileErr( file:* )
		{
			var filePath:String = "";
			
			if( file is File )
			{
				filePath = File( file ).nativePath;
			}
			else
			{
				filePath = String( file );
			}
			
			super( "\"" + filePath  + "\" is not a file!" );
		}
	}
}